import instance from '@/utils/request'
export const artGetChannelService = () => instance.get('/my/cate/list')
export const artAddChannelService = (data) =>
  instance.post('/my/cate/add', data)
export const artPutChannelService = (data) =>
  instance.put('/my/cate/info', data)
export const artDeleteChannelService = (id) =>
  instance.delete('/my/cate/del', {
    params: {
      id
    }
  })

export const artGetListService = (params) =>
  instance.get('/my/article/list', {
    params
  })

export const artPublishSerivce = (data) =>
  instance.post('/my/article/add', data)

export const artGetDetailService = (id) =>
  instance.get('/my/article/info', {
    params: {
      id
    }
  })

export const artUpdateService = (data) => instance.put('/my/article/info', data)
export const artDeleteService = (id) =>
  instance.delete('/my/article/info', {
    params: {
      id
    }
  })
